package org.zfes.snowier.cloud.zbss.cms.origin.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsOrigin extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsOrigin() {}
	public CmsOrigin(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	@javax.validation.constraints.NotNull(message="内容来源id不能为空")
	  private java.lang.Long originId;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=100,message="内容来源名称长度不能大于100")
	  private java.lang.String originName;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=1000,message="来源地址长度不能大于1,000")
	  private java.lang.String originUrl;
 
	@javax.validation.constraints.NotNull(message="创建时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="最后修改时间不能为空")
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="状态不能为空")
	  private java.lang.Byte status;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="图标长度不能大于255")
	  private java.lang.String icon;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="文字长度不能大于255")
	  private java.lang.String words;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=255,message="链接长度不能大于255")
	  private java.lang.String link;
 
	
	//<-------------------------------------------->
	public CmsOrigin setOriginId(java.lang.Long originId){
	 this.originId=originId;
	 return this;
	}
	public java.lang.Long getOriginId(){
		return this.originId;
	}
	public CmsOrigin setOriginName(java.lang.String originName){
		this.originName=originName==null?null:originName.trim();
	 return this;
	}
	public java.lang.String getOriginName(){
		return this.originName;
	}
	public CmsOrigin setOriginUrl(java.lang.String originUrl){
		this.originUrl=originUrl==null?null:originUrl.trim();
	 return this;
	}
	public java.lang.String getOriginUrl(){
		return this.originUrl;
	}
	public CmsOrigin setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsOrigin setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsOrigin setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsOrigin setIcon(java.lang.String icon){
		this.icon=icon==null?null:icon.trim();
	 return this;
	}
	public java.lang.String getIcon(){
		return this.icon;
	}
	public CmsOrigin setWords(java.lang.String words){
		this.words=words==null?null:words.trim();
	 return this;
	}
	public java.lang.String getWords(){
		return this.words;
	}
	public CmsOrigin setLink(java.lang.String link){
		this.link=link==null?null:link.trim();
	 return this;
	}
	public java.lang.String getLink(){
		return this.link;
	}

}
